package com.bnp.reporting.java8.date;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * Created by adib on 12/11/14.
 */
public class LocalDateExample {
    public static void main(String[] args) {

        LocalDate current = LocalDate.now();
        System.out.println(current);

        LocalDate specificDate = LocalDate.of(1980, 3, 1);
        System.out.println("My BDay: " + specificDate);

        LocalTime currentTime = LocalTime.now();
        System.out.println(currentTime);

        LocalTime specificTime = LocalTime.of(12, 45);
        System.out.println("specific time: " + specificTime);

        LocalDateTime localDateTime = LocalDateTime.of(specificDate, specificTime);
        System.out.println("Local Date Time: " + localDateTime);

    }
}
